package com.doctor.web.service;

import com.doctor.web.domain.ProductDO;

import java.util.List;

public interface ProductService {
    boolean save(ProductDO productDO);
    boolean removeById(Long id);
    boolean updateById(ProductDO productDO);
    List<ProductDO> getProductList();
    List<ProductDO> getProductsByCategory(Integer categoryName);
    List<ProductDO> getProductsSortedBySalesDesc();
    List<ProductDO> getProductsSortedByPriceAsc();
    List<ProductDO> getProductsSortedByPriceDesc();

    ProductDO getById(Long id);
}